<html>
<head>
<#include "/WEB-INF/views/common/meta.html"/>
	<#include "/WEB-INF/views/common/css.html"/>
</head>

<body>
<#include  "/WEB-INF/views/common/navbar.html" />
<div class="main-container container-fluid">
<#--<#include  "/WEB-INF/views/common/sidebar.ftl" />-->
    <div class="main-content">

        <div class="page-content">
            <div class="row-fluid">
                <div class="span12">
                    <!--PAGE CONTENT BEGINS-->
                    <h4><span>欢迎您：${userinfo!}</span></h4>
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                        <tr>
                            <th width="25%" class="center">商品名称</th>
                            <th width="25%" class="center">规格</th>
                            <th width="20%" class="center">单价</th>
                            <th width="30%" class="center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#if listpage??>
                            <#list listpage.list as lst>
                            <tr>
                                <td>${lst.name!}</td>
                                <td>${lst.specifications!}</td>
                                <td style="text-align: right">${lst.price?string("0.00")}</td>
                                <td>
                                    <a class="btn btn-mini btn-primary"
                                            onclick="location.href='${CONTEXT_PATH!}/client/edit?openid=${lst.id}'">
                                        <i class="ace-icon fa fa-edit"></i>加入购物车
                                    </a>
                                    <a class="btn btn-mini btn-danger deleterow" id="${lst.id}"><i
                                            class="fa fa-rash-o"></i>收藏
                                    </a>
                                </td>
                            </tr>
                            </#list>
                        </#if>
                        <tr>
                            <td colspan="4">
                            <#include "/WEB-INF/views/common/_paginate2.html"/>
                            </td>
                        </tr>
                        </tbody>

                    </table>
                    <!--PAGE CONTENT ENDS-->
                </div><!--/.span-->
            </div><!--/.row-fluid-->
        </div><!--/.page-content-->
    </div><!--/.main-content-->
</div><!--/.main-container-->

<#include "/WEB-INF/views/common/js.html" />
<#include "/WEB-INF/views/common/deleterow.html" />

<script type="text/javascript">
    var refresh = function () {
        $("#begin_search").click();
    };

    $(document).ready(function () {
        $(".date").datepicker({format: 'yyyy-mm-dd', autoclose: 1, todayHighlight: 1, language: 'zh-CN'});

    });
</script>

</body>
</html>
